.PHONY:NetCal
TestSocket:NetCalServerd NetCalClient

NetCalServerd:Server.cpp
	g++ -o $@ $^ -std=c++17 -ljsoncpp # -static

NetCalClient:Client.cpp
	g++ -o $@ $^ -std=c++17 -ljsoncpp # -static

.PHONY:output
output:
	@mkdir output
	@mkdir -p output/bin
	@mkdir -p output/conf
	@mkdir -p output/log
	@cp NetCalServerd output/bin
	@cp NetCalClient output/bin
	@cp test.conf output/conf
	@cp install.sh output/
	@cp uninstall.sh output/
	@tar czf output.tgz output

.PHONY:clean_output
clean_output:
	rm -r output

.PHONY:clean
clean:
	rm NetCalServerd NetCalClient